﻿@model ProjectAddModel
@{
    ViewBag.Title = "太原市超重机械使用备案申请登记表";
}
@section JS
{
    <script src="@Url.Content("~/Scripts/ProjectAdd.js")" type="text/javascript"></script>
}
@section BodyNav
{
    > @Html.ActionLink("工程列表", "List", "Project") > 开始报检
}
@using (Html.BeginForm())
{
    
    <table class="edit">
        <tr>
            <th>
                设备名称及型号
            </th>
            <td>@Model.EquipmentName @Model.EquipmentModel
            </td>
        </tr>
        <tr>
            <th>
                产权备案编号
            </th>
            <td>@Model.EquipmentNO
            </td>
        </tr>
        <tr>
            <th>
                工程名称
            </th>
            <td>@Html.EditorFor(m => m.Name)
            </td>
        </tr>
        <tr>
            <th>
                工程地址
            </th>
            <td>@Html.EditorFor(m => m.Address)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.ConstructionCompany)
            </th>
            <td>@Html.EditorFor(m => m.ConstructionCompany)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.ConstructionProjectManager)
            </th>
            <td>@Html.EditorFor(m => m.ConstructionProjectManager)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.ConstructionProjectManagerPhoneMobile)
            </th>
            <td>@Html.EditorFor(m => m.ConstructionProjectManagerPhoneMobile)
            </td>
        </tr>
        <tr>
            <th>
                产权单位
            </th>
            <td>@Model.OwnerCompany
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t=>t.Owner)
            </th>
            <td>@Html.EditorFor(t => t.Owner)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t=>t.Mobile)
            </th>
            <td>@Html.EditorFor(t => t.Mobile)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.ConstructDateTime)
            </th>
            <td>@Html.EditorFor(m => m.ConstructDateTime)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.DemolitionDateTime)
            </th>
            <td>@Html.EditorFor(m => m.DemolitionDateTime)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.High)
            </th>
            <td>@Html.EditorFor(m => m.High)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Comment)
            </th>
            <td>@Html.EditorFor(m => m.Comment)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.DemolitionCompanyId)
            </th>
            <td>
                @Html.HiddenFor(m => m.DemolitionCompanyId)
                @Html.EditorFor(m => m.DemolitionCompany)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.DemolitionCompanyOwner)
            </th>
            <td>
                <div id="DemolitionCompanyOwner">
                    @Html.DisplayFor(m => m.DemolitionCompanyOwner)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.DemolitionCompanyOwnerPhone)
            </th>
            <td>
                <div id="DemolitionCompanyOwnerPhone">
                    @Html.DisplayFor(m => m.DemolitionCompanyOwnerPhone)
                </div>
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.InspectNO)
            </th>
            @if (String.IsNullOrEmpty(Model.InspectNO))
            {
                <td>@Html.TextBoxFor(m => m.InspectNO)
                </td>
            }
            else
            {
                <td>@Html.DisplayFor(m => m.InspectNO)
                    @Html.HiddenFor(m => m.InspectNO)
                </td>
            }
        </tr>
        <tr>
            <td colspan="2">
                @Html.HiddenFor(m => m.EquipmentNO)
                <input type="submit" value="提交" class="btnBtn" />
            </td>
        </tr>
    </table>
}